home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / ANSI Headers / utime.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-23  |  981 b   |  54 lines  |  [TEXT/MMCC]

  1. /*
  2.  *    File:        utime.h
  3.  *                ©1993-1995 metrowerks Inc. All rights reserved
  4.  *    Author:        Berardino E. Baratta
  5.  *
  6.  *    Content:    Interface file to standard UNIX-style entry points ...
  7.  *
  8.  *    NB:            This file implements some UNIX low level support.  These functions
  9.  *                are not guaranteed to be 100% conformant.
  10.  */
  11.  
  12. #ifndef _UTIME
  13. #define _UTIME
  14.  
  15. #ifndef _TIME
  16. #include <time.h>
  17. #endif
  18.  
  19. #pragma options align=mac68k
  20.  
  21. /* struct for utime */
  22. struct utimbuf {
  23.     time_t actime;                    /* access time (ignored on the Mac) */
  24.     time_t modtime;                    /* modification time */
  25. };
  26.  
  27. /* struct for utimes */
  28. struct timeval {
  29.     int tv_sec;                        /* seconds */
  30.     int tv_usec;                    /* microseconds (ignored on the Mac) */
  31. };
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. /*
  38.  *    Set the file time stamps.
  39.  */
  40. int utime(const char *path, const struct utimbuf *buf);
  41.  
  42. /*
  43.  *    Set the file time stamps.
  44.  */
  45. int utimes(const char *path, struct timeval buf[2]);
  46.  
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50.  
  51. #pragma options align=reset
  52.  
  53. #endif
  54.